<?php
return array(
	'attributeLabels' => array(
		'url' => '链接',
		'name' => '名称',
		'icon' => '小图标',
	),
	
	'rules' => array(
		array('url, name', 'required'),
	),
	
	'attributeHints' => array(
		'icon' => '16x16像素的图片',
	),
	
	'behaviors' => array(
		'fileSaver' => array(
			'class' => 'lib.behaviors.ar.CFileSaveBehavior',
			'baseUrl' => Yii::app()->baseUrl . '/uploaded',
			'basePath' => dirname(Yii::app()->basePath) . '/uploaded',
			'attributes' => array('icon'),
		),
	),
	
	'_import' => array(
		array('*', 'models.ActiveRecord//*'),
	),
);